package com.yunduansing.demo.dao.account;

import com.yunduansing.demo.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface AccountDao extends JpaRepository<UserEntity,Integer> {
    boolean findByAccountAndPassword(String account,String password);

    /**
     * 根据账户查找
     * @param account
     * @return
     */
    UserEntity findByAccount(String account);
}
